<!--


Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->

<div class="row dates-form hidden-print">
    <div class="col-sm-12 col-md-12">
        <form class="form-inline" role="form">
            <div class="form-group from-date">
                <label for="startDate">{{customLabel}} from:</label>
                <p class="input-group">
                    <input id="startDate" type="text" class="form-control date-text" datepicker-popup="dd-MMMM-yyyy" show-button-bar="false" ng-model="dateRange.start" is-open="startOpened" max-date="dateRange.end" datepicker-options="dateOptions" ng-required="true" />
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="openStart($event)"><i class="fa fa-calendar"></i></button>
                    </span>
                </p>
            </div>
            <div class="form-group to-date">
                <label for="endDate">to:</label>
                <p class="input-group">
                    <input id="endDate" type="text" class="form-control date-text" datepicker-popup="dd-MMMM-yyyy" show-button-bar="false" ng-model="dateRange.end" is-open="endOpened" min-date="dateRange.start" max-date="dateRange.max" datepicker-options="dateOptions" ng-required="true" />
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="openEnd($event)"><i class="fa fa-calendar"></i></button>
                    </span>
                </p>
            </div>
            <button type="submit" class="btn btn-default" ng-click="changeDates(dateRange.start, dateRange.end)">Apply</button>
        </form>
    </div>
</div>
